ActivityCompat
Helper for accessing features in android.app.Activity.
Types
Link copied to clipboard
interface OnRequestPermissionsResultCallback
This interface is the contract for receiving the results for permission requests.
Link copied to clipboard
interface PermissionCompatDelegate
Customizable delegate that allows delegating permission compatibility methods to a custom implementation.
Link copied to clipboard
Functions
Link copied to clipboard
Finish this activity, and tries to finish all activities immediately below it in the current task that have the same affinity.
Link copied to clipboard
Reverses the Activity Scene entry Transition and triggers the calling Activity to reverse its exit Transition.
Link copied to clipboard
Link copied to clipboard
Return information about who launched this activity.
Link copied to clipboard
Invalidate the activity's options menu, if able.
Link copied to clipboard
Indicates whether this activity is launched from a bubble.
Link copied to clipboard
Link copied to clipboard
open fun requestDragAndDropPermissions(@NonNull activity: Activity, @NonNull dragEvent: DragEvent): DragAndDropPermissionsCompat
Create DragAndDropPermissionsCompat object bound to this activity and controlling the access permissions for content URIs associated with the android.view.DragEvent.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setEnterSharedElementCallback(@NonNull activity: Activity, @Nullable callback: SharedElementCallback)
When makeSceneTransitionAnimation was used to start an Activity, callback will be called to handle shared elements on the launched Activity.
Link copied to clipboard
open fun setExitSharedElementCallback(@NonNull activity: Activity, @Nullable callback: SharedElementCallback)
When makeSceneTransitionAnimation was used to start an Activity, callback will be called to handle shared elements on the launching Activity.
Link copied to clipboard
open fun setLocusContext(@NonNull activity: Activity, @Nullable locusId: LocusIdCompat, @Nullable bundle: Bundle)
Sets the LocusIdCompat for this activity.
Link copied to clipboard
Sets the permission delegate for
ActivityCompat
.Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun startIntentSenderForResult(@NonNull activity: Activity, @NonNull intent: IntentSender, requestCode: Int, @Nullable fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int, @Nullable options: Bundle)
Start new IntentSender with options, if able, for which you would like a result when it finished.
Link copied to clipboard